
package com.matriq.cloudmanager.fragment;

import com.matriq.cloudmanager.R;
import com.matriq.cloudmanager.NoticeAnnoActivity;
import com.matriq.cloudmanager.ReminderActivity;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import net.lgpage.fragment.BaseFragment;

public class MessageFragment extends BaseFragment {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		return inflater.inflate(R.layout.fm_message, container, false);
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		setViews();
		setEvents();
		loadData();
	}

	LinearLayout ll[] = new LinearLayout[2];

	private void setViews() {
		ll[0] = (LinearLayout) getView().findViewById(R.id.ll0);
		ll[1] = (LinearLayout) getView().findViewById(R.id.ll1);
	}

	private void setEvents() {
		ll[0].setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				toActivity(ReminderActivity.class);
			}
		});
		ll[1].setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				toActivity(NoticeAnnoActivity.class);
			}
		});
	}

	private void loadData() {

	}

	@Override
	public void onDestroy() {
		super.onDestroy();
	}

}